package GUI;

import java.awt.Component;
import java.awt.Graphics;
import java.awt.Insets;
import java.awt.image.BufferedImage;

import javax.swing.border.Border;


public class bgBorder implements Border{

	
	BufferedImage mImagen = null;
	public bgBorder(BufferedImage imagen){
		mImagen=imagen;
		
		
	}
	public Insets getBorderInsets(Component c) {
	
		return new Insets(0, 0, 0, 0);
	}

	@Override
	public boolean isBorderOpaque() {
	
		return false;
	}

	@Override
	public void paintBorder(Component c, Graphics g, int x, int y, int width,
			int height) {
		if (mImagen != null)
		{g.drawImage(mImagen, 0, 0, width, height, null);}
		
	}

}
